'use strict';
const db = uniCloud.database();
// 获取 `user` 集合的引用
const collection = db.collection('myScoreDownload');
const dbCmd = db.command;
exports.main = async (event, context) => {
	let {imgPreview} = event
	let walllist = await collection.add(imgPreview)
	//返回数据给客户端
	return walllist
};
